package org.garbagecan.springstudy.remoting.http;

import org.garbagecan.springstudy.remoting.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
	public static void main(String[] args) throws Exception {
		ApplicationContext ctx = new ClassPathXmlApplicationContext(
				"/org/garbagecan/springstudy/remoting/http/spring.xml");
		Object httpInvokerProxy = ctx.getBean("httpInvokerProxy");
		AccountService accountService = (AccountService) httpInvokerProxy;
		System.out.println(accountService.getAccounts());
	}
}
